//
//  AppDelegate.swift
//  weibo22
//
//  Created by keshuaiguo on 16/1/17.
//  Copyright © 2016年 keshuaiguo. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    
    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

//        print(UserAccount.loadUserAccount())
        
        //设置全局UINavigationBar的颜色
        setThemeColor()
        
        
        //实例化 window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        //设置背景色 [UIColor whiteColor]
        window?.backgroundColor = UIColor.orangeColor()
        //设置根视图控制器
        window?.rootViewController = MainViewController()
        
        //window 可视化
        window?.makeKeyAndVisible()
        return true
    }
    
    private func setThemeColor() {
    
        //设置全局UINavigationBar的颜色

    UINavigationBar.appearance().tintColor = UIColor.orangeColor()
    }
}

